package com.qztc.news_end_core.enums;

public enum RespCode {
    SUCCESS(0,"success"),   //成功
    ERROR(1,"error"),   //失败
    ILLEGAL_ARGUMENT(2,"ILLEGAL_ARGUMENT");   //参数错误

    private int code;
    private String desc;

    RespCode(int code, String desc){
        this.code = code;
        this.desc = desc;
    }

    RespCode() {
    }

    public int getCode(){
        return code;
    }

    public String getDesc(){
        return desc;
    }
}
